// index.js
// 获取应用实例
const app = getApp()

Page({
  
  data: {
    address:''
  },
  toaddress(){
    wx.navigateTo({
      url: '../setaddress/index',
    })
  },
  onLoad(){
    app.globalData.address = '选择地址'
    this.setData({
      address:app.globalData.address
    })
  },
  onShow() {
    this.setData({
      address:app.globalData.address
    })
  },
})
